/*
 * 作者: 侯晓宇
 * 时间: 2017-01-11 
 * 说明：Custom JavaScript Library，需要在api.js之后引用
 * Copyright (c) 2016 中研沃兮
 */
var appinit = function (){	
	var path =  "../script";
	
	var pathname = window.location.pathname;
	
	//	name 为 /html/ {****} .html
	var name = pathname.match(/\/html\/([\s\S]*?).html/)[1];
	
	var requirejsPath = path + "/libs/require.js";
	var commonPath = path + "/app/common"
	
	requirejs([commonPath], function (common) {
		requirejs(['app/'+name+''], function(_ui){
			window.ui = _ui;
		});
	}); 
}


